package spring.boot.adminx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import spring.boot.adminx.model.SysMenu;

import java.util.List;

public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据等级查询菜单
     *
     * @param userId
     * @param level
     * @param pId
     * @return
     */
    List<SysMenu> selectLeftByLevel(@Param("userId") long userId, @Param("level") int level, @Param("pId") Long pId);

}
